package com.liang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Created with Intellij IDEA
 *
 * @Auther: liangjy
 * @Date: 2021/12/24/14:09
 * @Description:
 * @EnableFeignClients:  声明为feign客户端
 * @EnableCircuitBreaker: 声明启用数据监控
 * @EnableHystrixDashboard: 声明启用可视化的数据监控
 */
@SpringBootApplication
@EnableFeignClients
@EnableCircuitBreaker
@EnableHystrixDashboard
public class HystrixApplication {
    public static void main(String[] args) throws Exception{
        SpringApplication.run(HystrixApplication.class, args);
    }
}
